package ar.edu.itba.infovis.TPF;

import java.util.Comparator;

import ar.edu.itba.infovis.TPF.twitter.Tweet;

public class TweetsByFollowersComparator implements Comparator<Tweet>{

	@Override
	public int compare(Tweet arg0, Tweet arg1) {
		int count1 = arg0.getUser().getFollowers_count();
		int count2 = arg1.getUser().getFollowers_count();
		
		if(count1<count2) {
			return 1;
		} else if(count1>count2) {
			return -1;
		} else {
			return 0;
		}
	}

}
